another try to fix issue#132
Fix zip files to find the root more correclty

If the root doesn't happen to be the first entry in the zip file this fails to pick the correct root.  Instead we just find all folders with no subfolders and pick the first one.
Checking in changes prior to tagging of version 1.5019.

Changelog diff is:

diff --git a/Changes b/Changes
index 6740d36..a2ee8cd 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,13 @@
 See http://github.com/miyagawa/cpanminus/ for the latest development.

+1.5019 Sun Dec 23 02:19:45 JST 2012
+   [Bug Fixes]
+      - Fixes a bug where --installdeps fail to configure dependencies with cpanfile (hoelzro)
+
+   [Improvements]
+      - Cleaned up unused code
+      - Added documentation about --mirror option and local file path
+
 1.5018 Wed Sep 19 14:40:28 JST 2012
    [Improvements]
       - Check cpanm path upon --self-upgrade to give warnings for perlbrew users
Add Workaround for File::Temp rt#44924

I originally only discovered it in my branch that uses File::Fetch, because File::Fetch internally uses File::Temp with an implicit relative path, but was requested to suggest this as a stand-alone pull req.

Code with absolute paths passed explicitly to File::Temp::tempdir( DIR => ) are not affected.
Merge pull request #185 from kentfredric/ft_bugfix

Add Workaround for File::Temp rt#44924
Permit indexes to have extra fields.

CPAN.pm allows the index to contain an addtional "comment"
field.  See note here in the source code:

https://github.com/andk/cpanpm/blob/master/lib/CPAN/Index.pm#L376

I would also like to stuff some extra metadata into an index file using
this comment field.  This change allows cpanm to parse such indexes.
Fix a long standing bug where cascade search checks dist version instead of module version from 02packages. Fix #188
Checking in changes prior to tagging of version 1.5020.

Changelog diff is:

diff --git a/Changes b/Changes
index a2ee8cd..679ca03 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,10 @@
 See http://github.com/miyagawa/cpanminus/ for the latest development.

+1.5020 Tue Jan 29 10:29:08 PST 2013
+   [Bug Fixes]
+      - Fixed a bug in --cascade-search that was checking a wrong version from 02packages file (Bryce Baril)
+      - Added a workaround for older version of File::Temp bug (kentnl)
+
 1.5019 Sun Dec 23 02:19:45 JST 2012
    [Bug Fixes]
       - Fixes a bug where --installdeps fail to configure dependencies with cpanfile (hoelzro)
Added CHECKSUMS verification with --verify option.

Oriignally written as a plugin, now ported to the core.
Verify SIGNATURE file with cpansign command
suppress warnings for CHECKSUMS
Merge branch 'verify-dists' into devel
Checking in changes prior to tagging of version 1.5021.

Changelog diff is:

diff --git a/Changes b/Changes
index 679ca03..dd8e565 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,10 @@
 See http://github.com/miyagawa/cpanminus/ for the latest development.

+1.5021 Thu Jan 31 00:42:28 PST 2013
+   [Improvements]
+      - Added new --verify option that enables verifying CHECKSUM and SIGNATURE for distributions
+        from CPAN/PAUSE
+
 1.5020 Tue Jan 29 10:29:08 PST 2013
    [Bug Fixes]
       - Fixed a bug in --cascade-search that was checking a wrong version from 02packages file (Bryce Baril)
Check version requirement using CPAN::Meta::Requirements to support version range
upgrade fatlib - added CPAN::Meta::Requirements and removed unused ones
fix tests
Merge branch 'version-range' into devel
fix messaging on unsatisfied
Checking in changes prior to tagging of version 1.59_01.

Changelog diff is:

diff --git a/Changes b/Changes
index dd8e565..b2ba325 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,14 @@
 See http://github.com/miyagawa/cpanminus/ for the latest development.

+1.59_01 Thu Jan 31 09:54:50 PST 2013
+   [New Features]
+      - Added a proper support for version range in MYMETA files using CPAN::Meta::Requirements
+      - Skip installing modules when found versions from CPAN doesn't satisfy the requirement, rather
+        than proceeding as if it is ok. For instnacde, if a ditribution X requires Y >= 1.1 and Y on
+        CPAN (or your CPAN mirror) has 1.0, cpanm will just complain and stop installing it.
+      - Better cpanfile end-to-end support
+      - Upgraded fatpacked modules to the latest
+
 1.5021 Thu Jan 31 00:42:28 PST 2013
    [Improvements]
       - Added new --verify option that enables verifying CHECKSUM and SIGNATURE for distributions
Experimental support for Module@VERSION exact syntax, as well as Module~VERSION_RANGE

  e.g. cpanm DBI~">= 1.0, < 2.0"  cpanm Plack@1.222