Rewrite scan_includes.py. Add include paths.