New conf function

As noted, your conf function leaves a bit to be desired. I haven't tested this function on zsh, but I tried to keep the functionality used down to standard sh features that would work identically even on ancient sh-compatible shells, so a nice modern shell like zsh *should* be able to handle it just as well.