I am fairly new to VC so am not fully up to speed with debugging.
I added a couple of tasks in at the start to set the paths I wanted and then sent an email with the 2 variables in the body to myself (this seems a long winded way of finding out what value is actually in a variable).
The first variable ("FileName") looked correct as it had a valid path in it. The second variable was being set to
{PATH(GetFileName|{JOB(Active,Variable,FileName)}}
Although "{JOB(Active,Variable,FileName)}" is was resolved correctly the outer PATH function was not i.e. the email showed {PATH(GetFileName|<full path>}