make sure to create directories

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