Better workaround of problematic paths on Windows