Use `ctx.readdir` instead of `ls` for SDK platform detection (#3497)

1 file changed