monkey patch from https://github.com/mojombo/jekyll/pull/664