Fix not checking for imfile when import json.confg