Updated ERL_LIBS to allow for rebar use from REPL.
Updated the rebar plugin to only execute when running in current dir.