Simplify main/1 heads
Properly add deps/*/include to header file path
Don't forget about ebin/
Merge pull request #1018 from lavrin/search-apps-deps-libs

Erlang: search apps/, deps/ and libs/