filename detection enhancements for git