Fix file expansion problem with PE.
Merge pull request #40 from nanliu/expand_path

Fix file expansion problem with PE.