unix_capture_directory(): Add missing ret=0