Fix error condition when output path is not found.