Handle wildcard in more cases
Refactor AST scanning into a class

Ignore 'build' directory