Update .gitignore. Reset prefs if file can't be found