dopart: Also check for match of PATTERN in prepends and appends.

Though less likely, also check there in case the pattern did not match in the main task. Maybe the user wants to mark a particular +project or @context done.
FIX: here: Only match complete hostnames, not inner fragments.