fixed shell-detection routine

- home directories that weren’t using the standard  /Users/someone
scheme were confusing the directory-services query