[motorsport] Fix extraction and make trailing '/' optional