Prevent mocha running multiple times when there's more than one entry point

Fixes #5