base, shell: Fix issues highlighted by jshint