Fix working directory for cp deployment type.