make template: add detection for new/removed file