On Windows, when in the registry, os.Getwd() returns the previous
path rather than the registry location. Settings PWD as an environment
variable might seem hacky but it's the only way to resolve this.
Resolves#40
Installation instructions mention -o, however -o writes the log file:
-o logfile
--output-file=logfile
Log all messages to logfile. The messages are normally reported to standard error.
To write the document to an output file, in this case, you could use -O:
-O file
--output-document=file