I think this fixes #1614. It could use tests though.
Handle mixed case package names. I think this fixes #1614. It could use tests though.
c05c1cac78f75851740785e8a61d4b15a15750a4

c05c1cac78f75851740785e8a61d4b15a15750a4
