`basename()` should be sufficient.