#248: command/publish, command/watch: fix reference errors