`chmod -w` really doesn't make sense on Windows. Although NTFS allows
for readonly directories, it is something done through file system level
ACLs. This test doesn't really apply to Windows.
This converts the instances of the pattern for which we have a proper
substitution in lit. This will make it easier to replace it
appropriately with Windows equivalents.