minor adjust.. missing import os, get abs script path... for cfg directory..