plugin -remove deletes bin directory
Adding test for #3847.