Append DEPS_DIR at the end of ERL_LIBS if ERL_LIBS is defined

Thanks to Sean Chalmers for the debugging and original fix.