make setup scripts a bit more robust

git-svn-id: https://svn.salilab.org/imp/trunk@17489 e91f8c7b-0e32-4433-a9ac-4502d39a4eab