fixed build.js so it will run from any directory