Really fix $MONITOR_PORT detection

Fixes issue #215