configure/macports.py: fixed several typos and minor issues
Merge pull request #1 from balarsen/master

macports configure was broken