fixed regex in build script