Fix for literal pattern containing slash

If a literal ignore pattern contains slash but doesn't have the leading slash, it doesn't work properly. This patch will fix the issue (#367).