extract_dports.sh - Speed up extraction

- Faster extraction by ignoring packages that already exist
- Factor out post processing code. Include file and dir perm change
- Correctly source config file
- Fix usage