Fixed os.tmpdir for older version of node
Merge pull request #29 from arshad/master

TypeError: Object #<Object> has no method 'tmpdir'