Merge for #2420 make failing from proto-def.js

added the implicit '/.' dependency to make sure that the JS_BUILD_DIR is created