Script paths to basename 11464 develop

This is in dev_4_4 as https://github.com/ome/scripts/pull/40 and https://github.com/ome/scripts/pull/39. Now for develop...