Fix shell type detection.
Merge pull request #8 from pjcdawkins/detect-shell

Fix shell type detection.

Resolves #7
Update readme to show --shell-type option in #8
Allow methods as callbacks.
Merge pull request #9 from pjcdawkins/allow-method-callbacks

Allow methods as callbacks using [object, 'method']