[medium] refactor path globbing algorithm in filechecker module