Fixed tricky paths and ports in basepath test.