Only clean up libRdir on failure if its empty