HPCC-12585 change to the provided user before ssh/scp

The cluster install script require run as root user. If user
use key pair for ssh/scp but root user cannot the process will hang
Switch the provided user will resolve this problem.

sleep 1 seconds before clean the buffer with "expect -re .*"