Fixed an issue with mkdir