Re-factored scripts in preparation for calling git-bisect.