Added option to pass in optional `fs` to allow for test mocking