Let ruby handle temporary files

one commit to rule them all