[bosh_agent] making disk tests platform independent by mocking filesystem calls