based in issue #36, type doesn't take '-p' in some shells, let python
decide which shell to use (now works under FreeBSD)