Add support for command being a function

As in `grunt-shell`. Fixes #26