Quote input directory and layout file.

To cover for directory and file names with spaces.
Add cmdline parameter "--templates" to specify path explicitly.
Put quotes around filenames for copy-pasting into the shell.
Also save macro code to file.

Makes it easier to debug and re-run the stitching.