Added proper logic to rc.local script for detecting selinux enforcing.