Generalize function for texture path correction (Fixes #1779)

This is an unneeded include. OgreResourceGroupManager.h should be sufficient.