General cleanup of the code. Put the reporting into a new method. Additional checking for files because sometimes .git actual files would be incorrectly detected as files.