small build script optimization