Expand cache directories upon setting them.

This allows the use of relative paths such as ~/ruby-lint.