Stubbing helpers for simplifying bash script tests.