Expand the path of the target and token files [fixes #46478809]