RR: Added more logging.
Fixed some bash script issues for sed and repo user password.