[FIX] Use script variable instead of absolute path

Fix an issue with the path of encoded files.