Remove unnecessary path separators
Use mkdir_p instead of mkdir