based on feedback from jcs@, permit template to be in user supplied TMPDIR if
the user supplied TMPDIR exists as a directory, otherwise, fallback to /tmp