added || echo '' > /dev/null to scala -version as the return code is 1 and this was causing Docker to stop processing the file