Make spec self-contained and executable