[libcxx] [test] Fix path.modifiers remove_filename and replace_filename for windows

Also fix the synopsis in the replace_filename test, while touching
that file.

Differential Revision: https://reviews.llvm.org/D98108

GitOrigin-RevId: ab67fd39fc144d911d926c4db886d301061d1368
2 files changed