fix mac failures around rails gem instal