Use system method to list files.

Fixes part of the Kudu error for #1273 when international character is encountered.
Deployment for the repo in #1273 still fails because of some issue in KuduScript.
Right, see #607