Improved the stability

Adopted a variation of the regular expression suggested by Ned Konz (https://developer.mbed.org/users/bikeNomad)
Now the script is run by bash in order to use extended regular expressions
Added acknowledgments to README.md