Modify gradle script to wait for MATLAB benchmarks to complete on Windows.