ensure the correct plugins directory is created with proper attributes