waf: Fix linkcheck and spell commands.
Clean up and remove code that is not needed.
Fix sphinx-build quoting to work on Windows.