shell script for running last_to_scaffold step.