rcv_process_dir: fix issues with errno propagation due to xbps>=0.33.