refactor(cloudinit): Use Tempfile