Changed linux/mac run scripts for cc3d so that they return exit codes- to be used in the new parameter scan scripts