fix for legacy folder detection