Update API support.
sysprep: Refactor code, introducing a function to replace a line in a file.
sysprep: Update /etc/machine-info on Fedora 18+, RHEL 7+ (RHBZ#890027).
sysprep: Be prepared for CentOS etc. 7 which will act the same way as RHEL 7.