Regenerate the composer.json when missing.