Fixed checking for tempfiles dir. [Closes #9]
added for and in keywords