Determine correct root when running under mocha.