set path only if $SCALA_HOME exists