Fix a resolve bug with directory path. fix #839
Rebuild packages