fix if statement to allow nginx reload on template change