Changing function order for enabling selinux with amazon linux.