Cleanup build tempfiles in auto-update script.

For to avoid #642 in future