It might be faster to match the list out:

[_Version| PathTokens] = cb_context:path_tokens(Context),

Might be a little faster?