Update the way Dask is started by setting worker count, memory and nb thread according to available memory and cpu