A solution to #360

The patch only take effect when PATH_INFO is an empty string.

It works, at least for me.