Update pw2wannier90.f90 according to pull requests in the Wannier90 repository
See this issue on the Wannier90 repository for the changes.
Note that (apart for the change wavefunctions_module -> wavefunctions
that had occurred meanwhile in QE, the changes have been done by Hyungjun Lee (EPFL) in this PR to Wannier90