Remove unused ignores
Fix build script crash and optimize it