Changes to get the directory working as a module
Gnasher only changes directory upon initialisation