incorrect error message if the system has not fence-agents installed

and I also removed sort() because its duplicated.