Hacks some stuff to get around grunt/mocha peculiarities.