Some old versions of curl don't handle -k parameter, detect this case