Fix issue 19

If the servlet path doesn't end with /, then the computed relative path
should be shifted by one level.