Append DEPS_DIR at the end of ERL_LIBS if ERL_LIBS is defined

Only done if DEPS_DIR isn't found in it yet.

Thanks to Sean Chalmers for the debugging and original fix.