Fix reading of scp response to determine success