Adapt for *nix system