freshports support

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