A probable fix for a screen resolution problem in cygwin. Untested right now, but it should work...I think.
Missed a set of parentheses in the pushed version

I tested the code under cygwin with one monitor, and found that even that produced wrong output (and a test with some faked monitors confirmed the output given in the issue). The error was me omitting the parentheses that signify an array in bash. With them there it should work as intended.
Added a variable for the delimiter

This makes it easier to customize the code and to make sense of what it does.
Merge pull request #121 from antalg/master

A (now confirmed) fix for a screen resolution problem in cygwin.