Check if distribute is installed before checking installed version

Fixes #2272 and I think Fixes #2289