fixed setting `RELX_OUTPUT_DIR` from `RELX_OPTS`

This fix is imperfect: it only works if `-o $DIR` are the first args
in `RELX_OPTS`. It does not implicitly set the `RELX_OUTPUT_DIR` when
there is an arg other than `-o`, e.g. `--dev-mode`, leading
`RELX_OPTS`.
Change package index file format and deps handling

This commit adds two columns to the package index file: the
method used to retrieve the dependency (only git supported
at this point) and the preferred version (a commit or
equivalent in the case of git).

Now that all the necessary information is in the package
index file, the dep_* lines become optional. It is possible
to fetch dependencies by just listing it in the DEPS variable,
for example this would fetch both cowboy and jsx:

DEPS = cowboy jsx

The dep_* line can be used to override the defaults. It now
takes three values, the method used to retrieve the dependency,
the repository URL and the preferred version. The only change
from before is the first value being added.
Merge branch 'relx-output-dir-fix' of git://github.com/jtmoulia/erlang.mk