add functionality to detect the grapi version this allows running the same dockerfile with both master and final branches of Kopano Groupware Core Signed-off-by: Felix Bartels <felix@host-consultants.de> (cherry picked from commit a40db475f92eb9908348871ccd4b40f24161de66)