`findIncludes' function. The current implementation is impure and therefore not correct: it gathers header file dependencies only once for a specific path (due to caching).