Fix no-value Mocha opts as final CLI arguments.

In the process, extracted out getMochaOpts into its own file, with tests.
Update dependencies.