Fix Chef::Exceptions::EnclosingDirectoryDoesNotExist error for ~/.composer config dir in composer::global_configs