html and htm files are also file extensions.
Refactor how names are extracted from lists of dependencies
plan and target get the same default treatment as everything else
Add '.R' as a file extension.

This is somewhat ambiguous, as '.r' is not that unlikely as an
R object name.