Removed : from regex
Refactoring out erlang_lib_dir call