makefiles: fix osx sdk path detection