Problem with readdir on < perl5.12 or maybe with oSX