Redmine#4650: cf-promises: tag directory only when the checksum is different

see https://cfengine.com/dev/issues/4650