Expand tildes in transient directories

Closes #23.