Use dir for Windows only, ls for the rest