BUG: weave: don't fail in default_dir() on $HOME not being writable.

Thanks to jdemeyer.  Closes #1821.
Merge pull request #402 from rgommers/ticket-1821-weave

BUG: weave: don't fail in default_dir() on $HOME not being writable.