Cleaner handling of git-like plugins

Use exec rather than Sys.command then exit