Fixed a bug where the script couldn't access configuration directory to make changes