Fix crash when reading project dependencies

The project dependencies section must be consumed
from the list of lines of the project section, not from
the global list of lines.