change script for install rails on mac os x.