mkdir: respect the root path Don't try to strip trailing paths from the root directory on Windows (trying to create `C:` will fail).