Remove reliance on ruby runtime's ruby executable path in favour of the value from the capability manager.