Hello Peter,
For your specific problem, I'd recommend using rvm (
https://rvm.io/) - you can have the other app use a specific version (or version family) of Ruby. Or I suppose you could have facter use Ruby 1.8.
--
For others that may have this issue with Amazon Linux, here's what I did:
Out of the box, Amazon Linux (VERSION="2014.09") has both ruby2.0 and ruby1.8 installed. I just switched the default version at an OS level to 1.8 (/etc/alternatives):
# update-alternatives --config ruby
HTH!
_Khalid