Fix for case-senstive filesystems

Fixes errors when using in Linux.