fix sync_yocto for non regular files