use pgrep here instead, previous way could wrongly show SSH as enabled where it isn't.