Correctly compute feed folders

fixes #303