tester: find source dir by searching for self.