fix #375: application path resolution

change the way application index is built:
only .app files contained within ebin/ and src/ directories
are now used to determine application path - it allows not
to treat application patches as applications.