Fix pgvm install for OS X

There is some differences in usage of GNU sed and BSD sed.