Fakes system commands. Intended for use in tests.