Fix Makefile to work with osx commands