catch error on multiplpe app files in an app dir

Fix for https://github.com/rebar/rebar3/issues/5