The previous implementation would allow variables to sneak into the file names. This commit makes sure the resulting target file path exactly matches the expected path.