Added detection for nodemon restart