based in issue #36, type doesn't take '-p' in some shells, let python
decide which shell to use (now works under FreeBSD)
Merge pull request #66 from enriquefynn/master

Use which instead of "type -p"; don't force bash usage.