Fix hg file tracking check.