Split the 'patch' and 'commit' steps into separate scripts.
in_src added to run arbitrary command in source tree.