I like the second one (but don't misspell "pgxn") because it guarantees we'll get the right copy of pgxn, not just any old thing lying around on the PATH.