fix filtering of cached todo files

I suppose that files that are in the build_path should NOT be cached.