cleaner version selection in Makefile, avoid make error