Update .gitignore

Changes:
- Sort directories first
- Add Rake-specific files