Finally got the root flag:) many thanks to @HomeSen to his (big) help.
Feel free to pm me if you want some hints.