added os detection and list mode for linux and windows