Switch to a regex match to ignore \n's.
Merge pull request #371 from apenney/selinux-fixes

Switch to a regex match to ignore \n's.