When single-file bundle (escript) built by MAD is deployed, it cannot find apps' configuration file(s) is the ETS filesystem (see comments):
load_config(A) when is_list(A) ->
AppFile = A ++".app",
Name = wildcards(["{apps,deps}/*/ebin/"++AppFile,"ebin/"++AppFile]), % here Name will be = []
case file:read_file(Name) of % there are no files except escript bundle, failed
{ok,Bin} -> parse(binary_to_list(Bin));
{error,_} -> case ets:lookup(filesystem,AppFile) of % OK, found .app file is the ETS...
[{Name,Bin}] -> parse(binary_to_list(Bin)); % ...but pattern matching failed
_ -> [] end end.
When single-file bundle (escript) built by MAD is deployed, it cannot find apps' configuration file(s) is the ETS filesystem (see comments):