Add option for preserving the base directory

- This is necessary for protractor's sharded parallel tests