build: Ignore files more robustly