Fixed integration tests for win32. Extracted shell commands into shell.js