Try to use capath when no cafile can be found, refs composer/composer#2798