Revert "Revert "Fixed loading configuration folder""

This reverts commit 5b6e8b695a5d6b6ef424c7eab89fbb007beb23cf.