ensure tmpfiles are unique for each wget operation, and that before moving them they are writeable