Fix condition in build script