Consolidate some shell scripts.