split build.sh up, create app/