Patch APP_PATH refs in the install process