Make the findLogoFile() function faster, more efficient, and more readable