Take alternative workdir into account in test.
Merge pull request #667 from kacfengine/testFix

Take alternative workdir into account in test.