```ruby
if(patchlevel)
  patch = patchlevel.to_s.start_with?('p') ? patchlevel : "p#{patchlevel}"
end
[ruby_name(node, version), version, patch].compact.join('-')
```
Just to compact things a bit by slimming down the conditional block and use an array to build the string so we don't end up with a trailing `-`.