Update some directory settings
Fix .gitignore