Refactoring and commenting dotfiles.sh _each_dotfile function

Assigning first arugment to a $per_file_command variable to make it
clearer what this argument is. Adding comment to clarify variable access
in sub-functions.
Updating example task group in dotfiles.sh

This section wasn't previously updated for the changes in f4d7901eb
Updating task group example in dotfiles.sh