install/dependency/dependency_redhat.py: Refactoring output loops to check if readline() is null