Fix failing runtime_extended test
Force sync to disk prior to renaming the file for additional safety.
Bug 969112 - RFC 1121 (sect 2.1) specifies that a host name must start with a letter or number.
Unit tests mock File object needed to know about the fsync call.
Merge pull request #2695 from fotioslindiakos/runtime_extended

Merged by openshift-bot
bump_minor_versions for sprint 29
Automatic commit of package [openshift-origin-cartridge-jbossews] release [0.5.1-1].
Automatic commit of package [openshift-origin-cartridge-haproxy-1.4] release [1.10.1-1].
Automatic commit of package [rubygem-openshift-origin-msg-broker-mcollective] release [1.10.1-1].
Automatic commit of package [openshift-origin-cartridge-10gen-mms-agent] release [1.24.1-1].
Automatic commit of package [openshift-origin-cartridge-cron] release [1.8.1-1].
Automatic commit of package [rubygem-openshift-origin-node] release [1.10.1-1].
Automatic commit of package [openshift-origin-port-proxy] release [1.7.1-1].
Automatic commit of package [openshift-origin-cartridge-mysql] release [0.4.1-1].
Automatic commit of package [openshift-origin-cartridge-nodejs] release [1.11.1-1].
Automatic commit of package [openshift-origin-cartridge-haproxy] release [0.5.1-1].
Automatic commit of package [openshift-origin-node-proxy] release [0.10.1-1].
Automatic commit of package [openshift-origin-broker-util] release [1.10.1-1].
Automatic commit of package [rubygem-openshift-origin-common] release [1.9.1-1].
Automatic commit of package [openshift-origin-cartridge-postgresql] release [0.3.1-1].