modify how to get paths of erlang