build the TMP directory recursively
Merge pull request #14 from tomwans/master

build the TMP directory recursively