Make install-ruby run on Arch.

- Fix mktemp call
- Log on trap