Fixed detection of mercurial modifications.