Makefile: fix readlink on Mac OS X

Change-Id: Iae8a871a406cf274a1993b8f01b0e51b31896f1a