set script directory in a configurable var