Use our StripPath() function.
Fix jump to first/last subtitle line.

Fixes CID #966080