attempt to fix sftp connection hanging when prompt detection matches at package boundaries