path: Throw TypeError on non-string args to path.resolve