run.sh: support running from a different directory