Possibility to pass PREFIX, BINDIR, and MANDIR

This change makes it possible to pass PREFIX and more as env vars so the
install location can be changed easier than by editing the Makefile.