Fix writing of composer info in cache when package is not found
Fix package name when root package info does not exist