Add SCRIPTDIR config param
Merge branch 'dev' into COGE-177