fix python plugin undeploy with new dir names