Replaced 'nix-specific shell commands with file utils