Perl module for converting a list of files with full paths to a tree