Fix for path.resolve across drives in Windows

Fixes #8818