Fix chrootPath setting when connectionString has multiple servers listed

The 'chrootPath' was being set to everything past the first '/' in the connections string. This included all other servers listed in the connection string. For example, with a connection string like:

server:1234/chroot,server2:2345/chroot,server3:3456/chroot

the 'chrootPath' would be set to 'chroot,server2:2345/chroot,server3:3456/chroot' instead of just 'chroot'. This commit checks to see if there are any separators in the connection string, namely a comma, and if so, take the substring up until that first separator instead of the entire rest of the string.