fix makefile issue on different environment