Fix issue #5 - Define the script name conditionally, according to the host OS.

This allows the sphinx build script patching to complete on Windows hosts.

Also avoid shadowing the built-in "dir".