fix directory capitalisation; add .gitignore for .metadata