(Patch from Andreas Voegele)
Be warned: the scsh-version he started from was neither 0.5.1 nor 0.5.2, but something in between !