Refs #7363. Fix linux/osx script.