Replaced native spawn with cross-spawn to fix some issues on Windows.
Removed unused variables.