Enh: Use DICT_MODATTR from common

Hi,

I've created a new file in order to factorize code a little regarding Exernal Command. This PR use it.

This pull request has to be merged with naparuba/shinken#