FIX re-add fallback for priv_dir