Hi Brad,
Thanks for following up.
The issue was caused by the fact I was selecting index.php from the template folder when the code from that folder is actually rendered in the index.php file within the wp-admin folder. It was mostly about understanding the wordpress file structure which those posts you found above referred to.
Thanks again for your help.