Don't do any changes to file when running in check mode

Currently the module reports check mode being supported. However the
option is ignored and target file is being changed even when running
in check mode.
Only apply change to attribute if needed (idempotent)

Previous version always applied change when setting an attribute,
independently if the attribute was already set to the desired value.
This patch now check the existing value before applying change, and
will apply the change only if needed. This is particularly useful when
running in check to determine if changes to a file are needed.
Merge pull request #1 from siboulet/check-mode

Don't do any changes to file when running in check mode
Merge pull request #2 from siboulet/idempotent-set-attribute

Only apply change to attribute if needed (idempotent)