Use code:priv_dir() if possible, fallback to [root_dir(), "priv"].