Substitute bindir in Makefile.am

Rather than substituting the value of bindir during configure, which
might include an unexpanded shell variable, expand and substitute it as
a target in Makefile.am instead.