build: Fixing problems on Ubuntu 12.04 where ruby 1.9.1 couldn't be found

This also fixes #2