hmlgrep: minor code cleanup