added dir variable to allow dotfiles to be sourced from another dir than home dir