Fix issue when piping to bash for remote installation