renamed config folder and added null checks in case folders do not exist

Signed-off-by: Kai Kreuzer <kai@openhab.org>
Merge from upstream

Signed-off-by: Fabio Marini <fabio.mariniss@gmail.com>