Fix connecting to devel version of postgres

The current code throws NumberFormatException when trying to parse git checkout postgres server version '9.4devel'.
While at it fix the code to not eat the above mentioned exception when connecting.