expanduser on %%file targets

closes #2993
Merge pull request #2994 from minrk/expanduser

expanduser on %%file targets