Added a newfile function to the tmp.sh file so tests can easily create temporary files.