Add extension .dat and .ledger for ledger-mode
Simplify string-match for Git command