expanduser on %%file targets

closes #2993