Support more substitutions

The following substitutions are now supported:
BINDIR, DATADIR, LIBDIR, LIBEXECDIR, MANDIR and SYSCONFDIR
Re-generated the Makefiles