fix tests "list files" on linux/macos