Fixes #3322 : Also execute command when content was deleted or replaced.

Signed-off-by: Nicolas Charles <nicolas.charles@normation.com>