improved rails installation scripts