detect selinux and act accordingly
Merge pull request #41 from tgerla/fixselinux

detect selinux and act accordingly