Fixed assumption that the temporary directory is located in /tmp

This is an issue for my system (I like all passing tests, don't you?)