Use a built-in rebar function to check current directory is rel dir

The previous check was a little shady and would fail on directories that
had no .app or reltool.config file.

cc @jaredmorrow