Fix windows compatibility issue.

Windows paths use backslashes, so just verify that the id ends with
mocha.js.