Adding check to create plugins directory