Cleaned up the loop

Otherwise, the loop just prints the words 'file' and 'found' on separate lines.