an edge case in repo tests fixed
NO CHANGES indented code for better readability
added code to handle RHEL7