Chdir() to the configuration directory instead of /.