Change working directory during upload