Monkey patching mini_portile. Temporarily addresses #1102.