Added -nc option to wget of the rails source to prevent additional downloads when script is run more than once (i.e. with puppet)