DEV: Cleanup after remote update check (PR #12887)

Checking for remote should cleanup after itself. Currently each check litters the /tmp filesystem with checkouts. This patch ensures that update checks keep the system a bit tidier.

GitHub