fix handling of hgignore files (refs #127)