ruby: fix crash when no ruby file in extension