ensure we have a unique tempfile name on both the local and remote