bak: fixed directory handling
Merge pull request #196 from rominf/bak

Bak plugin: fixed directory handling