Handle trailing slashes in ignore files. There's an optional optimization we can add to is_ignored, but I don't take advantage of it yet. Related to #137.