Add an attribute use_distro_version

Add this attribute to support user using local repo.