Removed basename() in validateCreateDir