more resiliant way to set erlang-root