Fix absolute paths on Mac for tests so that their basis is not root but rather the current working directory.