Get rid of $scriptpath

It's defined in six places, which is six more than is proper.

Change-Id: I4e4816c1683fde395fb49a204326e9414b2ec43c