Send errors to STDERR
Auto cleanup tmpfile on exit
Use install(1)
Use mktemp -t
These scripts are POSIX SH safe