Relands https://github.com/flutter/flutter/pull/163890 and updates the Ninja path used by the engine tool