Fix distribution detection - return string instead of functions