cmd.go: Added expansion of path in cmd handler.
cmd.go: Allow using `dir' to set the command's working directory.
example/cmds.conf: Added explanation of `dir'.
cmd.go: Added `%q' to expand to query string.