Fix bug - in some Linux version, we don't have full bash supports

Use more simple syntax.wq
Porting to ARMv7