Allow tilde path expansion in lineinfile module

Although the setup of lineinfile expands the path before using it,
the expansion wasn't being passed through to the later call to the
file module. This fixes that.