Fixed set_mtime on Windows for directories

The utime function doesn't work correctly with directories.
Need to use SetFileTime instead.