[PATCH-libreport] move ensure_writable_dir from libabrt