Better hack for detecting Postgres version.

It seems that Windows uses , after version, while it's space on Linux.
Database version check now uses regex matching.