getcwd tests: Avoid compilation error on HP-UX 11.31.