Use g_path_get_basename() instead of strrchr(), so that either slash is