Use tempdir for syntax trees dir

This pull request will resolve #44