Fix rails installation