refix nif file in priv path