Ensuring tilde (~) expands to user's home directory for dbpath.

Closes Issue #4, thanks to mok0 for reporting!