bugfix: take destination root into account when checking for files