Fixed OS detection in makefile