Move tempfile require to lib
Merge pull request #63 from joaomilho/master

Move tempfile require to lib