bak plugin: fixed directories handling