Fix Makefile for OSX

This fixes an issue with the Makefile caused by the version of sed that ships with OSX. It does rely on uname existing, but I think that's fair considering the platforms ncurses itself is available for.