improve version check and check for at least 5.3.4

We need at least 5.3.4
Should fix https://github.com/owncloud/core/issues/2310 and probably others.

@VicDeo @Raydiation @tanghus @schiesbn