configure/macports.py: fixed several typos and minor issues