This is odd...I've done this a million times. I'm updating the main template on line 165 like you said, so that I could change the category background color. I've also added a metatag for keywords. When I save the file, and say UPDATE...the Status shows:
Files Examined: 32
Files Updated: 0
Files which could not be updated: 0
The Look In window shows: Files That Use
Library Items is unchecked, and Templates is checked.
None of the files are locked.
Am I missing something here?