Fixed error with rsync
Tweak for OSX script