fix for directory pattern (empty string)