Fix bug with creation of .composer folder

Fixes " 'RuntimeException' with message 'Unable to write bundled cacert.pem" on a fresh install