Fix erl_files/1 & app_src_files/1

Fix sub_dirs/3

Fix compile-app/1