autoconf: Add support for setting SHELL_PATH and PERL_PATH