Fix #669. Better rsync alias handling during sql-sync.