Fix file expansion problem with PE.