Fixed directory creation on the filesystem