missing'$' in priv dir check