Solved bug when trying to check if config folder exists