fix darwin-specific tests on ls exit status