Fixed errors in setup scripts discovered when installing Linux VM in AWS