Implement AUTOCONF_DIR to simplify things