Fix "make test" for systems without pushd