Use printf instead of echo -n (the latter won't work on OS X's /bin/sh)