The deterministic SIS epidemic model in a Markovian random environment