Added code to change to the settings directory