correct integration with shelf.js; cleanup in build dir