command line application (cli, written in php) to execute commands on a bunch of directories