Use 'os.OpenFile' to atomically create debug key file.
Use 'os.OpenFile' to atomically create debug key file.

Per code review feedback.

paulmey/packer,grubernaut/packer,ricardclau/packer,mitchellh/packer,grubernaut/packer,dave2/packer,bryson/packer,tas50/packer,paulmey/packer,grubernaut/packer,mitchellh/packer,rnaveiras/packer,paulmey/packer,grubernaut/packer,paulmey/packer,dave2/packer,grubernaut/packer,tas50/packer,pecigonzalo/packer,pecigonzalo/packer,ricardclau/packer,bryson/packer,dave2/packer,pecigonzalo/packer,timsutton/packer,pecigonzalo/packer,timsutton/packer,paulmey/packer,ricardclau/packer,timsutton/packer,hashicorp/packer,dave2/packer,hashicorp/packer,hashicorp/packer,tas50/packer,rnaveiras/packer,timsutton/packer,ricardclau/packer,rnaveiras/packer,tas50/packer,rnaveiras/packer,mitchellh/packer,bryson/packer,rnaveiras/packer,dave2/packer,bryson/packer,ricardclau/packer,bryson/packer,timsutton/packer,bryson/packer,tas50/packer,tas50/packer,timsutton/packer,mitchellh/packer,grubernaut/packer,paulmey/packer,dave2/packer,hashicorp/packer,rnaveiras/packer,mitchellh/packer,ricardclau/packer