Fixed texturepack name overriding and Windows crashes