Adding check_cmd support to file.managed state

Adding check_cmd support to file.managed state.  check_cmd, run the state only if the check_cmd succeeds, can be used to verify a configuration file is in the correct state before putting it in place.