Use cross-spawn

Fixes #588.
Merge pull request #616 from kevva/cross-spawn

Use cross-spawn