Making config.root RegExp windows-compatible