Update shellsnoop to work on FreeBSD.

Contributed by: skreuzer