Maybe prefix the tmpfile with a dot? rsync does this while copying over files - looks like a quite nice behaviour to me