Improve folder configuration handling