improve/consolidate file finding code
improve/consolidate file finding code

runewake2/opengl-examples,runewake2/opengl-examples,JohnRThomas/opengl-examples,runewake2/opengl-examples,JohnRThomas/opengl-examples,runewake2/opengl-examples,JohnRThomas/opengl-examples,JohnRThomas/opengl-examples