added tempdir sub

Hey, I needed a tempdir function ... see what you think. Maybe it's built into the language already? Still learning the ropes  :)