You really need to reinstall erlang as well actually.