small change to find highlighting directory better

uses readlink and dirname to find where the script was sourced from.