Fixes #1097

Unfortunately this is the wrong invocation of /bin/bash. This is the mock sshd in our 'make check' tests. I've linked to the code related to bug #1097 in a comment for that issue.