兼容windows和*nix