added check that mocha was not running for noFiles