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