fix rhogen extension on MAc OS