#410 - changed regexp to detect end of rsync