fix ls (to some extent; might still be racy depending on file operations on ls output)