Handle d=0 and n=0 parameters in Catgraph compatibility scripts correctly