Fix dialyzer to work on rebar

code:lib_dir/1,2 can return archive directory for rebar escript archive
applications, rather than the application's directory in the project.

Add dependencies not listed in `applications` to `dialyzer_plt_apps`.
Fix printing of dialyzer warnings

Fixes cases where dialyzer warning might include a `~` causing printing
to console to fail with `badarg`.
Merge pull request #17 from fishcakez/dialyzer2

Fix rebar dialyzer to work on applications in rebar archive