That sounds like understandably complex logic. Error handling is tricky ("if meteor was unable to automatically detect that inotify/kqueue didn't work, you may have to wait up to 5 seconds for stat polling to notice file changes").