updated build script (thanks farfromrefug)

ignore regex added