Make sure #files contains no directory