Well first, every theme is different so it can be pulling it from different areas.
Second, if you're making changes to the core theme file, that is why you're having to worry about updates. The correct way is to use a child theme to prevent exactly this.
I would suggest you look into child themes and more particularly with your theme as some themes have already a child theme folder ready for you and some don't...