[sdk-manage] more robust curl failure checking

Signed-off-by: Juha Kallioinen <juha.kallioinen@jolla.com>