Cleaned up validation and exception blocks, moved rsync command to constants