Added code to copy last file printed to /tmp for inspection while testing