Fix for https://github.com/middleman/middleman/issues/1145