init erlang only when erlang vm exists

check erlang-root-dir first. If exists, then
init erlang configuration