Fix prediff in prgenv-* cases for static_dynamic

The cray programming environments link statically by default, as opposed to
our usual environments which default to dynamic.  The prediff for this test
attempted to take that into account, but was checking against the wrong
environment variable to do so.  Fixing that.