fixed issues where tried to create a directory with an extension.
version up