Fix for optimized files including dependency information for excluded modules