fix issues to support case sensitive file systems