Take alternative workdir into account in test.