Fix distribution detection - return string instead of functions

Withous this fix get_distribution() returns functions instead of pure strings, thus setting distribution in subclasses does not work at all.

Discovered in 0.9