Tempfile already allows for split name/extension

- Use the built-in method (since Ruby 2.1 changed the way filenames are
  generated)