fix folderpath.resolve to use node v0.8.* api