Moved everything from before_script into before_script.sh
The sh script is now running directly in the bash script