Fixed configure_shell to handle case where $ENV{SUDO_USER} is empty.