Fix bug when directory is created on watched path
Add option to encode as base64