Escript locate app root to improve include paths handling

Thanks to the suggestions of @lafka and @aerosol on:
http://github.com/jimenezrick/vimerl/pull/46/files
Fix code typo
Merge branch 'nested-dirs'

Conflicts:
	compiler/erlang_check.erl