Use AC_PROG_SED in configure.ac
Substitute bindir and libexecdir in Makefile.am

Rather than substituting the values of libexecdir and bindir during
configure, which might include some unexpanded shell variables, expand
and substitute them as targets in Makefile.am instead.

https://bugzilla.gnome.org/show_bug.cgi?id=726095