Improve permissions checking
Merge pull request #188 from daboross/patch-5

Simplify permissions checking and only print value if user is in group