The version check is incorrect as 20 is not greater then 110. The problem is in the creation of the H5_LIBVER_DIR variable.