Fixing the cluster script and the scripts that execute each of the java commands