Fix realpath for dotfiles directory