A script for running commands in groups of directories