Refactor #9884 MODX_MANAGER_PATH  step5