Patch BASE_PATH definition