Don't replace every instance of erl, this breaks rabbitmqctl. Instead set ERL_DIR variable