dmg: fix recursive copy with BSD cp