Improve Makefile for testing various Emacs

We can test various emacs easily by this fix like.

```
% EMACS=emacs-24.3 make test
% EMACS=emacs-24.1 make test
```