Updated script to support *nix