mpd_get_title: call basename only when using path

This fixes a bug where tracks containing slashes in their name we trimmed as if they where paths.

For example, "Morning Bell/Amnesiac" would return "Amnesiac".