Fix priv_dir problem