Changed regex for renaming so that it can be more robust.
Rsync now works with inotify more testing needs to be done.