I think it would be clearer to do the typechecking/coercion separately then. Plus, `subprocess` will still error later if `cwd` were to be numeric anyway.