fix a TypeError bug in both lambda, read attempt from info.

After pull to my origin I have often an error:
  Failed to execute ban jail 'pam-generic' action 'iptables-allports': TypeError in lambda;

This occurred, cause getAttempt returns not a list (numeric), so by call of join in both lambda we have an exception TypeError;

Besides, the code is a bit simplifyed, imho. But the bug is "<b>join</b>" only:
<pre>"\n".join(...)</pre>