fixed createDirIfNotExists