anchor.diff:    var packages = json['packages'] as Map;
   
     packages.forEach((k, v) {
  -    assert(pathos.basename(v) == 'lib');
  -    map[k] = pathos.dirname(v);
  +    assert(p.basename(v) == 'lib');
  +    map[k] = p.dirname(v);
     });
   
     return map;
  
positive.code: import 'dart:async';
  import 'dart:convert';
  import 'dart:io';
  import 'package:path/path.dart' as pathos;
  import 'package:collection/wrappers.dart';
  
  import 'dependency.dart';
  
negative.code:     var packages = await _getReferencedPackages(path);
      if (!packages.containsKey(root.name)) {
        // the current package likely has no lib dir
        var rootLibDirPath = p.join(path, 'lib');
        var rootLibDir = new Directory(rootLibDirPath);
        assert(!rootLibDir.existsSync());
        packages[root.name] = root;
  