Finish check script and make gdb auto-quit

1. check.py will open file 'serial.out' and check substring 'Hello'
   until EOF

2. At the end of check.py, will call the system 'killall qemu-system-arm',
   which will terminate qenm emulator