use if-sattement.
Merge pull request #47 from axsh/set-distro-ver

use if-sattement.