Fix the shebang line and update jenkins_build.sh with latest updates from Jenkins.