exclude invalid ruby versions and cleanup