stack upgrade: Call getExecutablePath before overwriting ourself
stack upgrade: Call getExecutablePath before overwriting ourself

Fixes: #4462

Signed-off-by: Anders Kaseorg <087231934ba8fcf78bc142ce37d193b895ac03c4@mit.edu>

juhp/stack,juhp/stack