Updates the .gitignore file with better rules