making the template update check instance specific based on CWD