Detect output format from dependency path
Use different approach when dealing with *.lst files