kernelbase: Handle correctly paths with forward slashes in ReplaceFileW.
PathRemoveFileSpecW keeps only the drive if the path contains
all forward slashes as shown in tests.
But then the temporary file is created in the root folder
which fails for drive Z:.