fix cfg load to support local file path