I totally misparsed the next if ref code first time round, oops. Here are some tests...
-rw-r--r-- Changes
-rw-r--r-- MANIFEST.SKIP
-rw-r--r-- Makefile.PL
drwxr-xr-x eg
drwxr-xr-x lib
drwxr-xr-x maint
drwxr-xr-x t
drwxr-xr-x xt