Updated build system to include regex for errors.