added the config dir before creating the autoregister file.