Apparently mkdir is a cmd.exe builtin on Windows; use os.MkdirAll() instead.