Check presence of each beam listed in .app

This allow to build riak, because one of riak deps (node_package) have stuff in priv/ and valid node_package.app, but no one `.beam` files.

This patch not make relx ready to build riak releases (not yet), but I believe that checking beams by `.app` file better than finding any file in `ebin`