Fixes #3800 : Refresh directive tree when deleting directive

http://www.rudder-project.org/redmine/issues/3800