Create temporary .yaml file

Ensure that the temporary file on edit is a yaml file.

It allows editors which are basing their syntax colouring on the extension of the file.