Fixed bash script for running rails app