Moving non-managed file detection into the IScriptCommand implementations