check for nil and empty string for erlang path