* document the switch dirname and basename attrs
* add simple helper patterns: $fn, $pos, $message, $dirname, $basename