Ensure certain gems are not installed before running rake task