a8ccdfc1e4
Replace File.join + String#split + array slice + Array#join with a single String#rindex lookup. This avoids allocating intermediate arrays and strings on every call (once per cached module during startup).