Write out to a temp file instead

Unfortunately, 'source' doesn't work from stdin.