Internal
Normalizes a path
clean this up and make it so path.resolve is only called when an explicit context is passed (i.e. normalizePath(..., $) to use path.resolve)
path.resolve
normalizePath(..., $)
Normalizes a path