Updated to work on older autoconf implementations and support the new versionscript.m4 interface