Fix problems with subprocess call.