Add distance check to borg RCD. (Fixes Redmine #157)