swapped dirname and plugin_basename