Make cucumber runnable in master-clone

And add feature for WhenScriptRestarting which fails
https://github.com/Catrobat/Catroid/issues/875