Add build targets for 1.x
Move template-config to CLI parameter

You cannot for some reason use relative filepaths in the config file,
but they work just fine as cli options.