Adapt to recent improvements in TW5

The major improvement being that TW5 now allows the wiki path to be specified on the command line, instead of defaulting to the current working directory.