Add yaml extension to the tempfile