Greetings !
5. Manually running mempodroid:
Finally I ran the mempodroid from adb shell directly and voila, got the root prompt !! Attempting to run the root.sh from there still failed. I am guessing it was because of the shell, but not sure. Then running all the commands in the root.sh one by one from the prompt worked fine.