Use plugin_basename rather than re-implementing it