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.

HPCC-12585 replace expect -re .* with expect -re $
Also replace "sleep 1" with "expect re $"