When the directory is changed within nextKatacodaStep, the commands for changing the directory in the following steps will not work as expected, because the current directory in katacoda match not with the current directory in the katacoda runner.
In a new optional parameter the new directory can be specified.