run.sh modified to add option of using distributed cache