Fix invalid directory path for Windows.

https://github.com/ariya/phantomjs/issues/12715