Unify erlang and escript autocommands