rewriting the max_clients info gathering using pure ruby and not grep or awk