Fix sh compatibility in Makefile