Set working dir instead of changing it

Git supports the `-C` command line option and Composer has the  
`--working-dir` option to set the working dir on which to operate.

Other small changes like :
- remove `--dev` from `composer install`,
- use `git clone --local` instead of `git clone -l`.