Added plugins dir to removetrailing