It shouldn't really matter since @SCRIPTDIR should return the directory the script is located in, independent of whether it is a temp dir or anything else.

If you run your packaged script and you run it in debug mode, what is the value of @SCRIPTDIR ? Any pattern?
_________________________
There are two types of vessels, submarines and targets.