Tweak path watch condition slightly.
Fix non-standard console.debug to be console.log.