initial clone from code.google.com/p/go.exp/fsnotify