Cleanup old gem directories when upgrading Ruby.