Makefile: fix bug when running make install under tests/* directory