Fix tmp dir
Merge pull request #1 from typicode/master

Fix undefined var