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#1299

I will merge  it in 1 week. Feel free to give a feedback before :)