Update to allow overriding the temp folder. Resolved #31