Fix bug in autossh check.