Composer doesn't expand the ~ at the beginning of a path

Revert "Store Composer cache in XDG cache directory"

This reverts commit e8d96ccd95fa5bc862e321bbe88137a0fb0f1b9e.