Fix priv dir retrieval

[ci skip]