Workaround for broken stat on Windows.