shell scripts: run correctly when invoked from the script's own directory