Updated loopFiles.sh to run on the cluster