fix part 2 of issue#8, create subdirs if subdirs doesn't exist, not if basedir doesn't exists, since if it does, no subdirs are created