Fix handling of ruby executable on ubuntu

Code changes are localized to Linux and should be safe. Issue came up
while attempting to run unit tests locally.

@axelstudios let me know if you have any issue with this
Merge branch 'develop' of https://github.com/NREL/OpenStudio into develop