correct `getopt` usage in `ls`