Improve function pushdown handling

Add basic Firebird version detection to ensure that only
functions available on the remote Firebird server are actually
pushed down