Changing to child_process.exec for retrieving plugin list.