CORE-4014: Fixed file filtering.