x64-upstream: use dir_script rather than hardcoded