open is not a valid command in cygwin, added a check to use cygstart instead if building in cygwin