Fix glitch in path selection model

The root path for the script was incorrectly being set if
it was called from a location other than the directory
in which the script lives.