Fix the case of empty AC_CONFIG_AUX_DIR

When autoconf --trace AC_CONFIG_AUX_DIR is empty the generated .gitignore contains lines starting with //, which are not actually ignored. This patch fixes this, not really sure if it's the easiest or cleanest solution though.