Tidying up shell scripts.