filename fixed for OSX, wrapper function for fs.watch