handle subdirs in dest paths