Re-work code to get tool-rank-id from masters/slaves files instead of cluster noderank