Minor changes on capture script

Now capture log is in the external files and return ``all done'' after
screen capturing ends.