Avoid use of temporary variable called DOMAIN in task job scripts.

(This affects AIX task hosts only). DOMAIN is a commonly used variable name in
earth systems modeling, and users may want to pass it to tasks.

This actually caused a problem for our wave modeling expert today.

@matthewrmshin - please review.