Add script::getDirectory() and use it in script\configurable and scripts\runner.