Converted Ruby install script to Bash script.