Really fix $MONITOR_PORT detection

Fixes issue #215

One liner fix, but added some debugging and documentation.