Changed lookup of flagfile and associated parameters