Several small fixes.

Opening a PR for a bunch of small fixes so that they get reviewed.
Nit-picking... `ls -A` is not posix. Maybe `ls -a` and `-le 3`?

Also, can you explain which file (`-le 1`) is acceptable to delete?