use path/filepath; fix test case on windows