This was broken because of the comparison step.machine.match('@(.*)').0 == m.key where m.key contains the SSH user. Also some style tweaks.