Verify ls/rm behaviour in removing directory trees

Tl;dr: you should end the path glob with a directory separator / so that
all filesystem implementations can find the files that you specify.