Avoid possible exception on lost ScalaInstallation
Remove duplicate class