Fixed Ruby conditional open statements concerning "do"