Fix eslint errors that cause Travis CI to fail. The error is a no-shadow issue with shadowing variables but this is not actually happening because the variables are defined in an if/else block so they will never shadow each other. Anyway, I fixed this by moving the declaration out of the if/else block
Fix windows support but updating the command string to search for in ps.lookup.
Rather than searching only for mongod.exe in Windows, I search for mongod or mongod.exe because both are valid commands in Windows.
When using mongodb-runner start command in Windows, the ps.lookup command returns mongod and not mongod.exe. Therefore, it would incorrectly state no instances are running when one was.
Fix two issues in the repository:
ps.lookup
.mongodb-runner start
command in Windows, the ps.lookup command returns mongod and not mongod.exe. Therefore, it would incorrectly state no instances are running when one was.