Create necessary directories and fix rsync syntax.