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.