Check if distribute is installed before checking installed version
Merge pull request #2290 from dstufft/distribute-hack-fix

Check if distribute is installed before checking installed version