Use Dir.tmpdir in place of hardcoded /var/tmp for state files

On non-windows systems, /var/tmp is used as a hard-coded path for the default state file. Use Dir.tmpdir instead. The path can still be overridden using #UUID::state_file=