Added logic to get the plugin path.