fix test. (restrict selective script processing to only occur in staging...

... environment)