Replace path with path/filepath to correctly handle paths on Windows