fix issue with finding pnetcdf