1.5.0: adds templateHeader/Footer options, uses path.sep for extended Win compatibility