added check for rsync / fixes