Remove unused dependency File::Basename. Tweak tests for Win32. Update path regex in _process_file() to work under Win32 or *nix.