added global nice and ionice for external processes. Fixes #479