Change undodir regex conditional

undodir is set to ```'.'``` by default.

```'^\.,\|$'``` will accept the default and if ```'.'``` if the first on a list, the
option is set, as intended.

Tiny fix, Tim. undodir wasn't being set in a default env.