Detect lens/incl from resource to find target file