spliting nix and mac ls commands to unbork