fix result regex in build system