Thanks Tom (and everyone else.) It was the :t modifier that I was missing. I had tried just concatting the filename with $cwd but that only works with relative paths.