I think it would be nice to make a function trying to open the texture, which you can call at 1st with the bare path, then a 2nd time with the full path (that is valid for resource pack for minecraft 1.6.2.

... or you may want to remove completely the above code (1st attempt to open texture in zip) as it might become useless with new resources packs.