Fix scripts to use right APP_BASE.