fix redundant processing of --build flag in configure script