Use older m4_esyscmd instead of the newer m4_esyscmd_s to work on systems
with autoconf older than 2.63b.  Adding the extra sed at the end does the
same thing (strip off the newline)