Fix bug where remove buttons affect wrong config

Transformation directory remove buttons were affecting source
directories, because in refactoring to a single method to remove dirs, I
missed a small change :-)