Set up working directory