rsync dir check logic