Deleting log file when no error is found and proper handling of rsync errors
through log file rather than through exit code