update from https://github.com/bagder/curl/blob/master/lib/mk-ca-bundle.pl