重构path相关的代码

resolve ecomfe/edp-build#18