Change print-format to support spaces in paths