Fixed a problem where NULL was not an acceptable directory name