Replace approximate version check in Makefile with exact one