Make fork_cmd a two-arg function as well.