Fix .gitignore to handle core apps correctly