Ensure relative paths work with `--output` and `template=…` build options.