Replace dir path to avoid the path problem.

fix the problem when using "make test-agent-server" will encounter some path problem in windows.