Oh, saw your cd changes. Needed to adapt new ls argument checking to cwd being one of the parameters.