Fixes PATH_INFO if only REQUEST_URI is given

This commit fixes an issue when no PATH_INFO is given which seems to be
common with nginx as backend.

Instead it takes the pathinfo from the REQUEST_URI by taking the
path-part of the URI