Update daemon.js

path.join used to concatenate string before passing to existsSync