Fixed issue with newer versions of Ruby on OS X Mavericks.