fix bundler caching script

[skip ci]
move watchdog to own file