Use $::postgresql::server::version instead of $version in Class[postgis]