modified optmygem.sh to deal rails4 and acts_as_paranoid