Add x-platform support for mktemp
Use a more cross-platform way finding whether the update flag is over a certain age