run gc before deleting temp file

don't ask me why, but on Windows this fixes an
ERROR: unlink: operation not permitted (EPERM)