Create ruby opts file dynamically