improved detection of output for curl in installer