Makes `dscl` usage service-agnostic when checking for user shell

The fix for #2029 prevents installation for OS X users managed by, e.g., Active Directory.