Cross-platform functions emulating common shell commands