determine the script base directory with symlinks resolved