Fixes an issue with stats in paths with whitespace}
Splitting on whitespace of the ls-tree output is not enough: when
a path contains a space only the first part is taken as the file
name. This commit changes that behaviour by using another command
to list all the file names.