Fix a bug in _mkdir. File::Path::path throws exceptions on error, its return value in this case isn't what we need to check.