add configDir
check if the auto-start file exists.
Create it if needed