only activate erlang if location exists