teach lineinfile module to support --check mode