update code and tests to no longer use /tmp as the default location for storing temporary files

fixes #5