RubyScript: fix incorrectly merged files