Add basic dependency checking in build.sh.