improved node-daemon script