Update makefilesystem.sh

made change to handle dmesg output format of Ubuntu.