Allow TempDir to be overwritten through options