erlang: Fix check for whether erlang is installed or not