Can't get lineinfile to do a sed right, so split into two