Create miscapitialised dirs for case-sensitive filesystems

We need these directories to exist so cl_git_mkfile() can create the
files we ask it to.
Plug leaks
index tests: test capitalization before mkdir
Merge branch 'hf/master_patch'