Use inotify to wait for file creates.

Use rename since I was having issues with os.link not being atomic.