[legacyRender] fix #100 Cool URI expand

- support XOOPS_ROOT_PATH is not server document root
- more flexible
- support PATH_INFO