don't use directory hacks. they're not cross-compatible.
don't hardcode to /app, use BUILD_DIR instead
make the build and cache dirs before anything else
don't pipe to /dev/null! Those logs are important!
use the environment variables, people!