call devtools jail setter only when node is enabled

or there would be reports that 'require()' is not defined
when opening devtools. Fix #809