Fix bug in _exec_command_retrieve_patch