Fix case mismatches that cause issues on case-sensitive file systems

Because Mac is weird.