Improve remote machine installation script