parent path resolution breaks in windows

parent path resolution breaks in windows 

Using `/` on 'resolved' path in windows doesn't work as path is like 'c:\\path\\to\\base'

replace `base.substr(0, base.lastIndexOf("/"))` with `resolve(base, '..')`