Fix scala -version command exits with 1