Fixing file reading

Ensures case insensitivity of distribution types