Fixed the loading on non-lowercase content files on case sensitive platforms

Fixes #2727, which was introduced in #2721

@vmachacek Please test it :)