if ft is conf and no dot in filename, set ft to perl also