Fix dirpersist plugin

This plugin did not work, I just found the same functionnality in grml, this one works.