Testsuite: strip trailing / from "pwd" output