Add flags S/SA to the keep state rule
Replace fact operatingsystemrelease with kernelrelease due to current changes in facter resulting in operatingsystemrelease returning 10_u11 and similar. We really need operatingsystemmajrelease.rb fact such as in linux.
Replace puppi functions with stdlib function str2bool. This only works for stdlib 4 and upwards.