Add support for special paths for dotfiles.

Enables files like terminalrc to be put in ~/.config/Terminal/terminalrc
easily instead of just ~/.terminalrc.