bugfix on  --datadir

Signed-off-by: Sebastien Varrette <sebastien.varrette@uni.lu>