dpaste plugin: add compatibility with non GNU *nix
dpaste plugin: add tests