Fixes #3189 : Fix directive saving process

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