swap watchFile for a more cross platform solution