Adding support for `PATH_CURRENT_SITE` and `$GLOBALS['base']`.

@raamdev Please test this on your `/sub-directory/child-blog` install.