Bug : install_prereq script on Ubuntu 15.10 and asterisk 13.8.0

Dear all,
I noticed some strange behaviour with the install_prereq script. More specifically running this script as root (sudo -i , sorry ubuntu ), the script prints out the following but then terminates without output:
#############################################

test: test mode.

Use the commands here to install your system.

#############################################

The same when i call install_prereq test .

After some troubleshooting i noticed that it seems to reach a point and terminate / crash. More specifically it reaches the check_installed_debs() function and goes up to

echo $pkgs | grep -v ‘:i386$’

and then crashes. At that stage the $pkgs contains the following:

binutils-dev binutils-dev:i386 build-essential:i386 doxygen doxygen:i386 freetds-dev freetds-dev:i386 git:i386 libasound2-dev libasound2-dev:i386 libbluetooth-dev libbluetooth-dev:i386 libcorosync-dev libcurl4-openssl-dev libcurl4-openssl-dev:i386 libedit-dev libedit-dev:i386 libgsm1-dev libgsm1-dev:i386 libgtk2.0-dev libgtk2.0-dev:i386 libical-dev libical-dev:i386 libiksemel-dev:i386 libjack-dev libjack-dev:i386 libjansson-dev:i386 liblua5.1-0-dev liblua5.1-0-dev:i386 libmysqlclient-dev libmysqlclient-dev:i386 libncurses5-dev:i386 libneon27-dev libneon27-dev:i386 libnewt-dev:i386 libogg-dev:i386 libpopt-dev libpopt-dev:i386 libpq-dev libpq-dev:i386 libsnmp-dev libsnmp-dev:i386 libspandsp-dev libspandsp-dev:i386 libspeex-dev:i386 libspeexdsp-dev:i386 libsqlite0-dev libsqlite0-dev:i386 libsqlite3-dev:i386 libssl-dev:i386 libusb-dev libusb-dev:i386 libvorbis-dev:i386 libvpb-dev libvpb-dev:i386 libxml2-dev:i386 libxslt1-dev libxslt1-dev:i386 lua5.1 lua5.1:i386 portaudio19-dev portaudio19-dev:i386 python-dev python-dev:i386 subversion:i386 unixodbc-dev unixodbc-dev:i386 uuid uuid:i386 uuid-dev:i386
and grep returns nothing.

Is this normal behaviour for the script?

Issue is not present when running the same script for the certified version