Be carefull here! You are splitting with re's both \ and / but joining with os.path.

It also would be nice that such platform dependency should be hidden inside "child_folder" or config.get() (get_path()?). Either way, you should do that for every path you get from config or you pass it to a child_folder.