Fix behavior when insert* doesn't match anything

If insertbefore/insertafter didn't match anything, lineinfile was doing nothing instead of adding the line at EOF as expected.