freshports support

I made all config variables global, and fixed freshports support.