restrict versions of rdoc and json
if a cmd fails during script, abort run