add-target: allow specifying a directory.
log: use message, not format in output.
test: specify directory in test.