- the file.extract_hash function does not support Windows path format
  - path mangling with re module replaced with multi-platform os.path.basename