move manifest check to build.js