fix OSX policy loading

Changed the detection logic to not collide with OS X