switch to building to a target dir